package com.ddwl.gate.dao;

import com.ddwl.common.dao.TkDao;
import com.ddwl.gate.mapper.BohuanCallRecordMapper;
import com.ddwl.gate.model.BohuanCallRecord;
import org.aspectj.weaver.patterns.ExactAnnotationFieldTypePattern;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author hemiaojun
 * @Date 2020/10/14 14:21
 */
@Repository
public class BohuanCallRecordDao extends TkDao<BohuanCallRecordMapper, BohuanCallRecord> {

    @Resource
    private BohuanCallRecordMapper bohuanCallRecordMapper;

    public void changeRechargeRecordId(Map<String, String> map) {
        bohuanCallRecordMapper.changeRechargeRecordId(map);
    }

    public List<BohuanCallRecord> getAll() {
        Example example = new Example(BohuanCallRecord.class);
        return bohuanCallRecordMapper.selectByExample(example);
    }

    public void changeId(Map<String, String> map) {
        bohuanCallRecordMapper.changeId(map);
    }
}
